<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入vue -->
     <script src="js/vue.js"></script>
     <!-- 引入elementui -->
      <!-- 样式 -->
    <link rel="stylesheet" href="element-ui-2.13.0/lib//theme-chalk/index.css">   
       <!-- 组件库 -->
    <script src="element-ui-2.13.0/lib/index.js"></script>    
</head>
<body>
    <div id="app">
        <!-- 
            按钮
            @click="visible = true" 绑定单击事件  点击将visible变量设置为true
        -->
        <el-button @click="visible = true">点我显示对话框</el-button>
        <!-- 
            dialog对话框 
             :visible  是否显示 Dialog
        -->
        <el-dialog :visible="visible" title="hello elementui">
          <p>Try Element</p>
        </el-dialog>
      </div>
</body>
</html>
<script>
    new Vue({
        el: '#app',
        data: {
            visible: false 
        }
    })
</script>
